package com.chengdu.chun.service.impl;

import com.chengdu.chun.mapper.LoginfoMapper;
import com.chengdu.chun.po.Loginfo;
import com.chengdu.chun.service.LoginfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginfoServiceImpl implements LoginfoService {

    @Autowired
    private LoginfoMapper loginfoMapper;

    @Override
    public void insert(Loginfo loginfo) {
        loginfoMapper.insert(loginfo);
    }

    @Override
    public List<Loginfo> getLoginfoList() {
        return loginfoMapper.getLoginfo();
    }
}
